/**
 * Created by DELL on 2017/4/18.
 */
// const testHelper=require('./ulti/sortTestHelper');
const swap=require('./ulti/swap');
//冒泡排序
const bubbleSort=function(arr){
    var i,j;
    for(i=0;i<arr.length;i++){
        for(j=0;j<arr.length-i-1;j++){
            if(arr[j]>arr[j+1]){
                swap(arr,j,j+1);
            }
        }
    }
    console.log('冒泡排序:');
};
module.exports=bubbleSort;
// testHelper([bubbleSort]);